package com.senriot.quickup.service.mapper

import com.senriot.quickup.domain.City
import org.mapstruct.Mapper
import org.mapstruct.NullValuePropertyMappingStrategy


@Mapper(
    componentModel = "spring",
    uses = [],
    nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE
)
abstract class CityMapper
{
    fun cityFromId(id: Int?) = id?.let { City(id = it) }
}
